import request from '@/utils/request'

// 查询货品存储入库列表
export function listIn(query) {
  return request({
    url: '/system/in/list',
    method: 'get',
    params: query
  })
}

// 查询货品存储入库详细
export function getIn(id) {
  return request({
    url: '/system/in/' + id,
    method: 'get'
  })
}

// 新增货品存储入库
export function addIn(data) {
  return request({
    url: '/system/in',
    method: 'post',
    data: data
  })
}

// 修改货品存储入库
export function updateIn(data) {
  return request({
    url: '/system/in',
    method: 'put',
    data: data
  })
}

// 删除货品存储入库
export function delIn(id) {
  return request({
    url: '/system/in/' + id,
    method: 'delete'
  })
}

// 导出货品存储入库
export function exportIn(query) {
  return request({
    url: '/system/in/export',
    method: 'get',
    params: query
  })
}

// 货品类型分类
export function getGoodsStyle(data) {
  console.log(`data============:`,data)
  return request({
    url: `/system/cate/queryProductByMaterialCate`,
    method: `post`,
    data
  })
}

